package com.buba.matter.service.Impl;

import com.buba.matter.dao.PriceMapper;
import com.buba.matter.pojo.Price;
import com.buba.matter.service.PriceService;
import com.buba.system.pojo.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class PriceServiceImpl implements PriceService {
    private PriceMapper priceMapper;

    @Override
    public Long selPriceCount() {
        return priceMapper.selPriceCount();
    }

    @Override
    public List<Price> selPriceTable(Page<Price> page) {
        return priceMapper.selPriceTable(page);
    }

    @Override
    public Integer addPrice(Map<String, Object> map) {
        return priceMapper.addPrice(map);
    }

    @Override
    public Integer delPriceAll(List<String> list) {
        return priceMapper.delPriceAll(list);
    }

    @Override
    public Integer updPrice(Map<String, Object> map) {
        return priceMapper.updPrice(map);
    }

    @Override
    public List<Price> selMatterPriceByCondition(Map<String, Object> map) {
        return priceMapper.selMatterPriceByCondition(map);
    }


    @Override
    public List<Price> selMatterPriceItemsNo(Map<String, Object> map) {
        return priceMapper.selMatterPriceItemsNo(map);
    }

    @Override
    public Integer selMatterPriceByNo(Map<String, Object> map) {
        return priceMapper.selMatterPriceByNo(map);
    }

    @Override
    public Long selCount(Map<String, Object> map) {
        return priceMapper.selCount(map);
    }

    @Override
    public List<Price> selAllPrice(Map<String, Object> map) {
        return priceMapper.selAllPrice(map);
    }

    @Autowired
    public void setPriceMapper(PriceMapper priceMapper) {
        this.priceMapper = priceMapper;
    }
}
